#ifndef MAINSHARE_H
#define MAINSHARE_H

#include <QString>
#include <QTime>

#define MAIN_FEATURE_FILE "etc/mainfeatures.txt"

#define DATE_DICOM_FORMAT "yyyyMMdd"
#define TIME_DICOM_FORMAT "hhmmss"
#define DATETIME_DICOM_FORMAT "yyyyMMddhhmmss"
#define SQLITE_DATETIME_FORMAT "yyyy-MM-dd hh:mm:ss"
#define SQLITE_DATE_FORMAT "yyyy-MM-dd"
#define SQLITE_TIME_FORMAT "hh:mm:ss"
#define DATETIME_SQLITE_FORMAT "yyyy-MM-dd hh:mm:ss"

#define MAGNIFIER_SIZE 300
#define SEED_CROSS_SIZE 20
#define MAGNIFIER_FACTOR "MAGNIFIERFACTOR"
#define OPEN_FILEPATH "OPENFILEPATH"
#define SAVE_FILEPATH "SAVEFILEPATH"
#define PROGNOSTIC_FILEPATH "PROGNOSTICFILEPATH"
#define ANNO_TEXT_FONT "ANNOTEXTFONT"
#define MPR_VIEW "MPRVIEW"
#define TUMOR_VIEW "TUMORVIEW"
#define TUMOR_AREA "TUMORAREA"

#ifndef MAINSHARE_CPP
#define MAINSHARE_EXTERN extern
#else
#define MAINSHARE_EXTERN
#endif

MAINSHARE_EXTERN QString sex2trSex(const QString &sex);
MAINSHARE_EXTERN QString trSex2Sex(const QString &trsex);
MAINSHARE_EXTERN QTime formatDicomTime(const QString &timeStr);

#endif // MAINSHARE_H
